/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.fd.service;

import java.util.Collection;
import java.util.List;

import com.xy.biz.fd.domain.bo.DocumentHistoryBO;
import com.xy.biz.fd.domain.req.documentShare.GetDocumentShareRequest;
import com.xy.biz.fd.domain.req.documentShare.SaveDocumentShareRequest;
import com.xy.biz.fd.domain.resp.GetDocumentShareResponse;
import com.xy.lang.domain.Result;
import com.xy.biz.fd.domain.bo.DocumentShareBO;
import com.xy.biz.fd.domain.query.DocumentShareQuery;

/**
 *
 *
 * @author wcs
 * @date 2021-2-8
 */
public interface DocumentShareService {

	/**
	 * 保存
	 *
	 * @param request
	 */
	Result<?> saveDocumentShare(SaveDocumentShareRequest request);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	Result<?> saveAllDocumentShare(Collection<DocumentShareBO> collection);

	/**
	 * 更新
	 *
	 * @param documentShareBO
	 */
	Result<?> updateDocumentShare(DocumentShareBO documentShareBO);

	/**
	 * 删除
	 *
	 * @param documentShareId
	 */
	Result<?> deleteDocumentShare(Long documentShareId);

	/**
	 * 删除(delete_flag=1)
	 *
	 * @param documentShareId
	 */
	Result<?> relDeleteDocumentShare(Long documentShareId);

	/**
	 * 查找一个
	 *
	 * @param documentShareId
	 * @return
	 */
	Result<GetDocumentShareResponse> getDocumentShare(Long documentShareId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<DocumentShareBO> listDocumentShareById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<GetDocumentShareResponse> listDocumentShare(DocumentShareQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countDocumentShare(DocumentShareQuery query);
}
